package com.dwxt.cdms.dao;

import com.dwxt.cdms.entity.Conversation;
import com.dwxt.cdms.entity.ConversationExample;
import com.dwxt.cdms.entity.HealthMessage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ConversationMapper {
    Long countByExample(ConversationExample example);

    int deleteByExample(ConversationExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Conversation record);

    int insertSelective(Conversation record);

    List<Conversation> selectByExample(ConversationExample example);

    Conversation selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Conversation record, @Param("example") ConversationExample example);

    int updateByExample(@Param("record") Conversation record, @Param("example") ConversationExample example);

    int updateByPrimaryKeySelective(Conversation record);

    int updateByPrimaryKey(Conversation record);

    List<HealthMessage> getHealthMessageByUserId(Integer customerId);

    void updateStatus(Integer customerId);

}